<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<title>企业详情</title>
		<meta name="keywords" content="知果汇" />
		<meta name="description" content="知果汇" />
		<link rel="SHORTCUT ICON" href="_IMG_/favicon.ico" />
		<link rel="stylesheet" type="text/css" href="_CSS_/reset.css">
		<link rel="stylesheet" type="text/css" href="_CSS_/common.css">
		<link rel="stylesheet" href="_CSS_/company_details.css" />
		<style>
		.address,.links{color:#666666;}
		</style>
	</head>
	<body>
		<div class="wrapper hide">
			<div class="border1">
				<div class="border2">
					<h5 class="companyName">奥美医疗用品股份有限公司</h5>
					<p class="mb5"><span class="icons icon-phone"></span>联系方式：<span class="telephone">027-8897567</span></p>
					<p class="mb5"><span class="icons icon-address01"></span>地址：<span class="address">湖北省武汉市洪山区光谷大道78号</span></p>
					<p class="mb20"><span class="icons icon-web"></span>企业网址：<a class="links" href="javascript:;" target="_blank"></a></p>
					<div class="intros">
						<span class="icons icon-note fl"></span>
						<p class='fl'>企业介绍：<span class="introduce">本公司致力于产品研发本公司致力于产品研发本公司致力于产品研发本公司致力于产品研发本公司致力于产品研发本公司致力于产品研发。</span></p>
					</div>
					<div class="medals">
						<p><span class="icons icon-medal"></span>荣誉勋章：</p>
						<div class="scrollArea">
							<div class="medalSection" id="medal1"></div>
							<div class="medalSection" id="medal2"></div>
							<div class="medalSection" id="medal3"></div>
						</div>		
					</div>
				</div>
			</div>
			
		</div>
	</body>
	<script src="_JS_/jquery-1.8.3.min.js"></script>
	<script src="_JS_/jquery.base64.js"></script>
	<script src="_JS_/jquery.cookie.js"></script>
	<script src="_JS_/common.js"></script>
	<script src="_P_/layer/layer.js"></script>
	<script type="text/javascript">
		$(document).ready(function(){
			var url = window.location.href;
			var	id = url.split("=")[1];
			/*页面数据加载*/
			$.ajax({
				type: "get",
				url: "/index.php/api/Companys/company_detail",
				dataType: 'jsonp',
				jsonp: 'callback',
				data: {
					'type': 1,
					'id':id,
				},
				success: function(msg) {
					if(msg.code == 200) {
						$('.companyName').text(msg.data.name);
						$('.telephone').text(msg.data.phone);
						$('.address').text(msg.data.address);
						$('.introduce').text(msg.data.introduce);
						if(msg.data.internet == '暂无信息'){
							$('.mb20').html('');
						}else{
							$('.links').text(msg.data.internet);
						}						
						if(msg.data.company1){
							for(var i=0;i<msg.data.company1.length;i++){
								var html = '<div class="medal medal01"><span class="years">'+ msg.data.company1[i].years +'</span></div>';
								$('#medal1').append(html);
							}							
						}
						if(msg.data.company2){
							for(var j=0;j<msg.data.company2.length;j++){
								var html = '<div class="medal medal02"><span class="years">'+ msg.data.company2[j].years +'</span></div>';
								$('#medal2').append(html);
							}							
						}
						if(msg.data.company3){
							for(var m=0;m<msg.data.company3.length;m++){
								var html = '<div class="medal medal03"><span class="years">'+ msg.data.company3[m].years +'</span></div>';
								$('#medal3').append(html);
							}							
						}
						$('.wrapper').removeClass('hide');
					}else{
						layer.msg('查询失败!', {
							icon: 1,
							time: 1000
						});
					}
				}
			});
			
			$('.links').on('click',function(){
				var href = 'http://'+$(this).text();
				window.open(href);
			});
		});
	</script>
</html>
